package Dao;

import Pojo.Student;

import java.util.List;

public interface studentDao {
     //将student添加数据库
     public void  add(Student student);

     //按学号删除数据
     public void deleteByid(String sno);

     //修改
     public void update(Student student);

     //按学号查询
     public Student selectByno(Integer sno);

     //按用户名密码查询
     public Student selectBysnameAndpwd(String sname,String pwd);

     //查询全部消息
     public List<Student> selectForlist();

     //修改密码
     public int modPwd(String sno,String pwd);
     //查询是否有相同账号和密码的信息
     public Student queryUserByUsernameAndPassword(String username, String password);

     //显示页的个数
     Integer queryPageTotalCount();


     //显示页信息
     List<Student> queryPageItem(int begin, int pageSize);

}
